<?php /* Smarty version 2.6.16, created on 2011-08-26 11:19:02
         compiled from coach_time_update.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'coach_time_update.tpl', 36, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo '
<script language="javascript" type="text/javascript" src="js/datetimepicker.js"></script>
<script src="js/jquery.clockpick.1.2.7.js" ></script>
<link rel="stylesheet" href="style/jquery.clockpick.1.2.7.css" type="text/css">
<script>
j(document).ready(function(){
j("#clockpick1").clockpick({ valuefield: \'time_from\',starthour: 0,endhour:23,minutedivisions:1 }); 
j("#clockpick2").clockpick({ valuefield: \'time_to\',starthour: 0,endhour:23,minutedivisions:1 }); 
});
</script>

'; ?>


<h2><?php echo $this->_tpl_vars['SubmitButton']; ?>
</h2>
<div class="tabarea">
<div class="tabcontent">
<p align="right" class="fields">Fields marked with <span class="red">*</span> are required</p>
<form action="coach_time_update.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&action=trans" method="post" name="frm_admin" id="frm_admin" >
		<table width="100%" border="0" cellspacing="4" cellpadding="0">
		  <?php if ($this->_tpl_vars['err_msgs'] != ""): ?>     
			<tr>
				<td class="simpleText" colspan="2"><ul><?php echo $this->_tpl_vars['err_msgs']; ?>
</ul></td>
			</tr>
			<tr>
				<td align="left" valign="top">&nbsp;</td>
				<td align="left" valign="top">&nbsp;</td>
			 </tr>
		  <?php endif; ?>
		 
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Time Slot<span class="red">*</span>:</td>
			<td width="70%" align="left" valign="middle"><label>
			 <select name="time_slot_id" id="time_slot_id" class="selectbox" onChange="getTimeval(this.value)">
				<option value="">Select</option>
				<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['TimeArr'],'selected' => $this->_tpl_vars['FabricArr']['time_slot_id']), $this);?>

			</select>
			</label></td>
		 </tr>
		<tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Time From<span class="red">*</span>:</td>
			<td width="70%" align="left" valign="middle"><label>
			  <input type="text" name="time_from" id="time_from" readonly="" 
			  value="<?php echo $this->_tpl_vars['FabricArr']['time_from']; ?>
" class="datebox"/>
					<a href="#"><img src="images/clock.gif" id="clockpick1" align="left" class="PopcalTrigger" /> </a>
					<p class="clear"></p>
			</label></td>
		 </tr>
		 
		  <tr>
		  	<td colspan="2"></td>
		  </tr>
		  <tr>
			<td align="left" valign="middle" class="plaintxt">Time To<span class="red">*</span>:</td>
			<td align="left" valign="middle"><label>
			 <input type="text" name="time_to" id="time_to" readonly="" value="<?php echo $this->_tpl_vars['FabricArr']['time_to']; ?>
" class="datebox"/>
					<a href="#"><img src="images/clock.gif" id="clockpick2" align="left" class="PopcalTrigger" /> </a>
					<p class="clear"></p>
			</label></td>
		  </tr>
		  <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		  <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">
			 <input name="timing_id" id="timing_id" type="hidden" value="<?php echo $this->_tpl_vars['timing_id']; ?>
"/>
			 <input name="user_id" id="user_id" type="hidden" value="<?php echo $this->_tpl_vars['user_id']; ?>
"/>
			 <input name="imageField" type="submit" class="addsadmin" value="<?php echo $this->_tpl_vars['SubmitButton']; ?>
" <?php if ($this->_tpl_vars['timing_id'] == ''): ?> style="width:120px;"<?php else: ?>style="width:145px;"<?php endif; ?>/>
&nbsp;&nbsp;&nbsp;<input name="" type="button" class="cancel" value="Cancel" onclick="window.location.href='coach_time_manager.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&IsPreserved=Y'"/></td>
		  </tr>
		  <tr>
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		  </tr>
		</table>
</form>

	</div>
 </div>
    <p>&nbsp;</p>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<iframe width=132 height=142 name="gToday:contrast:agenda.js" id="gToday:contrast:agenda.js" src="DateRange/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-300px; top:0px;"></iframe>